package com.emep.changzhi.analyse.entity.datamonitor.minute;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.*;


import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 工业废气监测_分钟数据表
 * @date 2018/2/27  11:24
 */
@Data
@Table(value = "data_minute_industrial_gas")
public class DataMinuteIndustrialGas implements Serializable{

    private static final long serialVersionUID = 4822638920664344715L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String id;

    /**
     *行政区划code
     */
    @Column(value = "area_code")
    private String areaCode;
    /**
     *设备mn号
     */
    @Column(value = "mn")
    private String mn;
    /**
     *企业id
     */
    @Column(value = "company_id")
    private String companyId;
    /**
     *排口id
     */
    @Column(value = "outlet_id")
    private String outletId;
    /**
     *报文时间
     */
    @PrimaryKeyColumn(name = "packet_date", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String packetDate;
    /**
     *SO2污染物简称_检测值
     */
    @Column(value = "SO2_value" )
    private String SO2_value;
    /**
     *SO2污染物简称_状态
     */
    @Column(value = "SO2_status" )
    private String SO2_status;
    /**
     *创建时间
     */
    @Column(value = "create_date" )
    private String createDate = String.valueOf(System.currentTimeMillis());
}
